home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / binutils.7 / binutils / binutils-2.7 / bfd / hosts / i386bsd.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-04  |  848 b   |  26 lines

  1. /* Intel 386 running any BSD Unix */
  2.  
  3. #include <machine/param.h>
  4. #include <machine/vmparam.h>
  5.  
  6. #define    HOST_PAGE_SIZE        NBPG
  7. #define    HOST_MACHINE_ARCH    bfd_arch_i386
  8. #define    HOST_TEXT_START_ADDR        USRTEXT
  9.  
  10. /* Jolitz suggested defining HOST_STACK_END_ADDR to
  11.    (u.u_kproc.kp_eproc.e_vm.vm_maxsaddr + MAXSSIZ), which should work on
  12.    both BSDI and 386BSD, but that is believed not to work for BSD 4.4.  */
  13.  
  14. #ifdef __bsdi__
  15. /* This seems to be the right thing for BSDI.  */
  16. #define    HOST_STACK_END_ADDR        USRSTACK
  17. #define HOST_DATA_START_ADDR ((bfd_vma)u.u_kproc.kp_eproc.e_vm.vm_daddr)
  18. #else
  19. /* This seems to be the right thing for 386BSD release 0.1.  */
  20. #define    HOST_STACK_END_ADDR        (USRSTACK - MAXSSIZ)
  21. #endif
  22.  
  23. #define TRAD_UNIX_CORE_FILE_FAILING_SIGNAL(core_bfd) \
  24.   ((core_bfd)->tdata.trad_core_data->u.u_sig)
  25. #define u_comm u_kproc.kp_proc.p_comm
  26.